home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / prog / atari / c / berm122 / makefile < prev    next >
Makefile  |  1993-08-16  |  2KB  |  71 lines

  1. #
  2. # Makefile for Bermuda 1.20 on Unix
  3. #
  4.  
  5. # First edit pandora.h and check that you have #defined UNIX 1
  6.  
  7. # flags are for a generic BSD system (NEWS-OS 68k)
  8.  
  9. # define MSTRDUP=1 if your libs don't have strdup
  10. # define MSTRUPR=1 if your libs don't have strupr
  11. # define RE_BSD if you want to use BSD's regular expressions re_exec/re_comp
  12. COMFLG = -DMSTRDUP=1 -DMSTRUPR=1 -DRE_BSD
  13.  
  14. # add additional libraries (-lregexp may be needed)
  15. LIBS = -lregexp
  16.  
  17. # C compiler should be ansi
  18. CC=gcc
  19. CFLAGS = -O $(COMFLG)
  20.  
  21. # where to put binaries
  22. BIN = /usr/fido/bin
  23.  
  24. OBJS=import pack scan crunch
  25. CFILES=crunch.c pack.c route.c utextra.c import.c patmat.c scan.c
  26. HFILES=mail.h pandora.h
  27. PROFILES=crunch.pro pack.pro route.pro utextra.pro import.pro patmat.pro scan.pro
  28. PRJFILES=crunch.prj import.prj pack.prj scan.prj
  29.  
  30. all: $(OBJS)
  31.  
  32. import: import.o utextra.o pandora.h
  33.     $(CC) -o import import.o utextra.o $(LIBS)
  34.  
  35. pack: pack.o route.o patmat.o utextra.o pandora.h
  36.     $(CC) -o pack pack.o route.o patmat.o utextra.o $(LIBS)
  37.  
  38. scan: scan.o utextra.o pandora.h
  39.     $(CC) -o scan scan.o utextra.o $(LIBS)
  40.  
  41. crunch: crunch.o utextra.o pandora.h
  42.     $(CC) -o crunch crunch.o utextra.o $(LIBS)
  43.  
  44. DSRC=readme $(CFILES) $(HFILES) $(PROFILES) $(PRJFILES) Makefile bermuda.doc update.doc license makefile.nt
  45. dist-shar: $(DSRC)
  46.     shar -a -L 60 -n bermuda -s vincent@stell.gna.org -o bermuda.shar $(DSRC)
  47.  
  48. dist-src: $(DSRC)
  49.     zip bermsrc $(DSRC)
  50.  
  51. # for Atari ST only
  52. dist-bin:
  53.     zip berm120 *.ttp bermuda.doc read.me bermuda.doc update.doc
  54.  
  55. diff:
  56.     rcsdiff -rUsenet-PL1 -rUsenet-PL2 -c $(DSRC) >diff-file
  57.  
  58. install: all
  59.     strip pack scan import crunch
  60.     mv pack scan import crunch $(BIN)
  61.  
  62. clean:
  63.     rm -f *.o $(OBJS)
  64.  
  65. # dependencies
  66. crunch.o: pandora.h utextra.pro crunch.pro
  67. pack.o: pandora.h mail.h pack.pro route.pro utextra.pro
  68. scan.o: pandora.h mail.h scan.pro utextra.pro
  69. import.o: pandora.h mail.h import.pro utextra.pro
  70. route.o: patmat.pro route.pro utextra.pro
  71.